package com.tengju.data.infrastructure.repository.abm;

import com.tengju.data.domain.model.user.DealerBrandProviderId;
import com.tengju.data.domain.model.user.DealerBrandProviderRepository;
import com.tengju.data.infrastructure.persistence.mybatis.mapper.data.custom.DealerBrandProviderDOMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @Author: 李大仙
 * @Date: 2021/3/31 5:54 下午
 */
@Repository
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class DealerBrandProviderRepositoryImpl implements DealerBrandProviderRepository {

    private final DealerBrandProviderDOMapper dealerBrandProviderDOMapper;

    @Override
    public Long getById(DealerBrandProviderId userId) {
        return dealerBrandProviderDOMapper.selectById(userId.getValue());
    }
}
